package com.zang.blogz.model.input.ro;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: 橘贝贝
 * @Description:  编辑文章Ro对象
 * @DateTime: 2022/7/13 10:29
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ArticleReviseRO {

    @ApiModelProperty(value = "文章id")
    private Integer id;

    @ApiModelProperty("文章分类")
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 文章分类名称
     */
    @ApiModelProperty(name = "category", value = "文章分类", dataType = "Integer")
    private String categoryName;

    @ApiModelProperty("文章缩略图")
    @TableField("article_cover")
    private String articleCover;

    @ApiModelProperty("标题")
    @TableField("article_title")
    private String articleTitle;

    @ApiModelProperty("内容")
    @TableField("article_content")
    private String articleContent;

    @ApiModelProperty("文章类型 1原创 2转载 3翻译")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("原文链接")
    @TableField("original_url")
    private String originalUrl;

    @ApiModelProperty("标签Id集合")
    private List<Integer> tagList;

    @ApiModelProperty("状态值 1公开 2私密 3评论可见")
    @TableField("status")
    private Integer status;

    private Integer isDelete;


}
